package com.whw.fy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.whw.fy.config.IgnoreSwaggerParameter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;
import org.checkerframework.checker.i18nformatter.qual.I18nChecksFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Transient;

@ApiModel(value="com-whw-fy-entity-AttendanceTea")
@Data
public class AttendanceTea {
    /**
    * 老师考勤id
    */
    @ApiModelProperty(value="老师考勤id")
    private Integer attTeaId;

    /**
    * 老师id
    */
    @ApiModelProperty(value="老师id")
    private Integer teacherId;

    /**
    * 班级id
    */
    @ApiModelProperty(value="班级id")
    private Integer classId;

    /**
    * 上课次数
    */
    @ApiModelProperty(value="上课次数")
    private Integer completionTimes;

    /**
    * 是否出勤 0：未出勤 1：出勤
    */
    @ApiModelProperty(value="是否出勤 0：未出勤 1：出勤")
    private Integer attendance;

    /**
    * 缺勤原因
    */
    @ApiModelProperty(value="缺勤原因")
    private String reasonAbsence;

    /**
    * 打卡时间
    */
    @ApiModelProperty(value="打卡时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date postTime;

    @Transient
    @IgnoreSwaggerParameter
    private Staff staff;
    @Transient
    @IgnoreSwaggerParameter
    private Clazz clazz;
}
